package com.scuec.tourismwebsite.service;

import com.scuec.tourismwebsite.entity.UserFocus;
import com.scuec.tourismwebsite.mapper.UserFocusMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserFocusServiceImpl implements UserFocusService{
    @Autowired
    private UserFocusMapper userFocusMapper;


    @Override
    public List<UserFocus> getUserFocus(Integer focused_id, Integer user_id) {
        return userFocusMapper.getUserFocus(focused_id, user_id);
    }

    @Override
    public Integer insertUserFocus(Integer focused_id, Integer user_id) {
        return userFocusMapper.insertUserFocus(focused_id, user_id);
    }

    @Override
    public Integer deleteUserFocus(Integer focused_id, Integer user_id) {
        return userFocusMapper.deleteUserFocus(focused_id, user_id);
    }
}
